﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Core
{
    public class Ean13Settings
    {
        private int height = 66;

        public int BarCodeHeight
        {
            get { return height; }
            set { height = value; }
        }

        private int leftMargin = 10;

        public int LeftMargin
        {
            get { return leftMargin; }
            set { leftMargin = value; }
        }

        private int rightMargin = 10;

        public int RightMargin
        {
            get { return rightMargin; }
            set { rightMargin = value; }
        }

        private int topMargin = 25;

        public int TopMargin
        {
            get { return topMargin; }
            set { topMargin = value; }
        }

        private int bottomMargin = 15;

        public int BottomMargin
        {
            get { return bottomMargin; }
            set { bottomMargin = value; }
        }

        private int barWidth = 2;

        public int BarWidth
        {
            get { return barWidth; }
            set { barWidth = value; }
        }

        private Font barcodeFont;
        private Font font;

        internal Font BarcodeFont
        {
            get { return barcodeFont; }
        }

        internal Font Font
        {
            get { return font; }
        }

        public Ean13Settings(string os)
        {
            if (os == "Win7")
            {
                barcodeFont = new Font("Cambria", 13, FontStyle.Bold);
                font = new Font("Cambria", 14, FontStyle.Bold);
            }
            else
            {
                barcodeFont = new Font("Cambria", 12, FontStyle.Bold);
                font = new Font("Cambria", 13, FontStyle.Bold);
            }
        }
    }
}
